//
//  UITextField+extension.swift
//  one
//
//  Created by huangfeng on 2018/5/3.
//  Copyright © 2018年 huangfeng. All rights reserved.
//

import UIKit

extension UITextField {
    
    //使用便利构造函数  fontsize 有默认值 初始化的时候 可以不添加
    convenience init(frame:CGRect, placeholder: String,fontSize: CGFloat = 14) {
        
        self.init(frame: frame)
        
        
        self.placeholder = placeholder
        self.font = UIFont.systemFont(ofSize: fontSize)
        self.borderStyle = .roundedRect
        
    }
}
